package a.g;

import a.f.a.c;
import a.f.d.e;
import a.f.i.a;
import a.f.rc;
import a.h.dc;
import a.j.g;
import a.j.ke;

public class z
  extends h
{
  private static final String q = "PARTIAL";
  private static final String r = "GENERAL";
  public static final String s = "SUBGRAPH_LAYOUTER";
  public static final String t = "SUBGRAPH_LAYOUTER_IHL";
  public static final String u = "SUBGRAPH_LAYOUTER_ORGANIC";
  public static final String v = "SUBGRAPH_LAYOUTER_CIRCULAR";
  public static final String w = "SUBGRAPH_LAYOUTER_ORTHOGONAL";
  private static final String x = "SUBGRAPH_LAYOUTER_NO_LAYOUT";
  private static final String y = "MIN_NODE_DIST";
  public static final String z = "SUBGRAPH_POSITION_STRATEGY";
  public static final String A = "SUBGRAPH_POSITION_STRATEGY_BARYCENTER";
  public static final String B = "SUBGRAPH_POSITION_STRATEGY_FROM_SKETCH";
  public static final String C = "ROUTING_TO_SUBGRAPH";
  public static final String D = "ROUTING_TO_SUBGRAPH_STRAIGHT_LINE";
  public static final String E = "ROUTING_TO_SUBGRAPH_POLYLINE";
  public static final String F = "ROUTING_TO_SUBGRAPH_ORTHOGONALLY";
  public static final String G = "ROUTING_TO_SUBGRAPH_ORGANIC";
  public static final String H = "ROUTING_TO_SUBGRAPH_AUTO";
  public static final String I = "MODE_COMPONENT_ASSIGNMENT";
  public static final String J = "MODE_COMPONENT_CLUSTERING";
  public static final String K = "MODE_COMPONENT_CONNECTED";
  public static final String L = "MODE_COMPONENT_CUSTOMIZED";
  public static final String M = "MODE_COMPONENT_SINGLE";
  public static final String N = "HIERARCHY_REORGANIZATION";
  public static final String O = "ORIENTATION_MAIN_GRAPH";
  public static final String P = "ORIENTATION_MAIN_GRAPH_NONE";
  public static final String Q = "ORIENTATION_MAIN_GRAPH_AUTO_DETECT";
  public static final String R = "ORIENTATION_MAIN_GRAPH_TOP_TO_DOWN";
  public static final String S = "ORIENTATION_MAIN_GRAPH_DOWN_TO_TOP";
  public static final String T = "ORIENTATION_MAIN_GRAPH_LEFT_TO_RIGHT";
  public static final String U = "ORIENTATION_MAIN_GRAPH_RIGHT_TO_LEFT";
  public static final String V = "CONSIDER_SNAPLINES";
  private static final String[] W = { "SUBGRAPH_LAYOUTER_IHL", "SUBGRAPH_LAYOUTER_ORGANIC", "SUBGRAPH_LAYOUTER_CIRCULAR", "SUBGRAPH_LAYOUTER_ORTHOGONAL", "SUBGRAPH_LAYOUTER_NO_LAYOUT" };
  private static final String[] X = { "SUBGRAPH_POSITION_STRATEGY_BARYCENTER", "SUBGRAPH_POSITION_STRATEGY_FROM_SKETCH" };
  private static final String[] Y = { "ROUTING_TO_SUBGRAPH_AUTO", "ROUTING_TO_SUBGRAPH_STRAIGHT_LINE", "ROUTING_TO_SUBGRAPH_POLYLINE", "ROUTING_TO_SUBGRAPH_ORTHOGONALLY", "ROUTING_TO_SUBGRAPH_ORGANIC" };
  private static final String[] Z = { "MODE_COMPONENT_CONNECTED", "MODE_COMPONENT_SINGLE", "MODE_COMPONENT_CUSTOMIZED" };
  private static final String[] ab = { "ORIENTATION_MAIN_GRAPH_AUTO_DETECT", "ORIENTATION_MAIN_GRAPH_TOP_TO_DOWN", "ORIENTATION_MAIN_GRAPH_DOWN_TO_TOP", "ORIENTATION_MAIN_GRAPH_LEFT_TO_RIGHT", "ORIENTATION_MAIN_GRAPH_RIGHT_TO_LEFT", "ORIENTATION_MAIN_GRAPH_NONE" };
  private static final byte bb = 0;
  private static final byte cb = 1;
  private static final byte db = 2;
  private static final byte eb = 3;
  private static final byte fb = 4;
  public static boolean gb;
  
  public z()
  {
    super("PARTIAL", "yFiles Layout Team", "An algorithm that lays out only a subset of a graph.");
  }
  
  public dc j()
  {
    dc localdc = new dc(a());
    localdc.l("GENERAL");
    localdc.a("ROUTING_TO_SUBGRAPH", Y, 0);
    localdc.a("MODE_COMPONENT_ASSIGNMENT", Z, 0);
    localdc.a("SUBGRAPH_LAYOUTER", W, 0);
    localdc.a("SUBGRAPH_POSITION_STRATEGY", X, 0);
    localdc.a("MIN_NODE_DIST", 30, 1, 100);
    localdc.a("ORIENTATION_MAIN_GRAPH", ab, 0);
    localdc.a("CONSIDER_SNAPLINES", true);
    return localdc;
  }
  
  protected void n()
  {
    int i = f.p;
    boolean bool2 = f.o;
    g localg = e();
    if (localg.R().k() + localg.S().k() == 0) {
      return;
    }
    dc localdc = i();
    localg.a(a.g, ke.b(localg));
    localg.a(a.h, ke.b(localg));
    a locala = new a();
    locala.a(localdc.e("MIN_NODE_DIST"));
    locala.d(localdc.g("CONSIDER_SNAPLINES"));
    byte b1 = d(X[localdc.i("SUBGRAPH_POSITION_STRATEGY")]);
    locala.a(b1);
    byte b2 = e(Z[localdc.i("MODE_COMPONENT_ASSIGNMENT")]);
    locala.b(b2);
    byte b3 = f(ab[localdc.i("ORIENTATION_MAIN_GRAPH")]);
    locala.d(b3);
    byte b4 = c(Y[localdc.i("ROUTING_TO_SUBGRAPH")]);
    if (i == 0) {}
    locala.c(b4 == 4 ? 1 : b4);
    String str = W[localdc.i("SUBGRAPH_LAYOUTER")];
    Object localObject = null;
    if (i == 0) {
      if (0 == b2)
      {
        localObject = null;
        if ((i == 0) && (!bool2)) {
          break label409;
        }
      }
    }
    if (i == 0) {
      if ("SUBGRAPH_LAYOUTER_IHL".equals(str))
      {
        localObject = new e();
        ((e)localObject).m(true);
        if (i == 0) {
          if (0 == b4)
          {
            ((e)localObject).l(true);
            if (i != 0) {
              break label425;
            }
            if (!bool2) {}
          }
          else
          {
            ((e)localObject).l(false);
          }
        }
        break label409;
      }
    }
    if (i == 0) {
      if ("SUBGRAPH_LAYOUTER_ORGANIC".equals(str))
      {
        localObject = new a.f.g.f();
        ((a.f.g.f)localObject).n(true);
        break label409;
      }
    }
    if (i == 0) {
      if ("SUBGRAPH_LAYOUTER_CIRCULAR".equals(str))
      {
        localObject = new c();
        break label409;
      }
    }
    if (i == 0) {
      if ("SUBGRAPH_LAYOUTER_ORTHOGONAL".equals(str))
      {
        localObject = new a.f.h.j();
        break label409;
      }
    }
    if ("SUBGRAPH_LAYOUTER_NO_LAYOUT".equals(str)) {
      localObject = null;
    }
    label409:
    locala.a((rc)localObject);
    r().e(true);
    label425:
    if (i == 0) {
      if (b3 != 1) {
        if (i != 0) {
          break label446;
        }
      }
    }
    label446:
    boolean bool1 = b3 == 3;
    r().c().b(bool1);
    a(locala);
  }
  
  private static byte c(String paramString)
  {
    int i = f.p;
    if (i == 0) {
      if ("ROUTING_TO_SUBGRAPH_ORTHOGONALLY".equals(paramString)) {
        return 0;
      }
    }
    if (i == 0) {
      if ("ROUTING_TO_SUBGRAPH_STRAIGHT_LINE".equals(paramString)) {
        return 1;
      }
    }
    if (i == 0) {
      if ("ROUTING_TO_SUBGRAPH_AUTO".equals(paramString)) {
        return 2;
      }
    }
    if (i == 0) {
      if ("ROUTING_TO_SUBGRAPH_ORGANIC".equals(paramString)) {
        return 3;
      }
    }
    if (i == 0) {
      if ("ROUTING_TO_SUBGRAPH_POLYLINE".equals(paramString)) {
        return 4;
      }
    }
    return 1;
  }
  
  private static byte d(String paramString)
  {
    if (f.p == 0) {
      if ("SUBGRAPH_POSITION_STRATEGY_FROM_SKETCH".equals(paramString)) {
        return 3;
      }
    }
    return 2;
  }
  
  private static byte e(String paramString)
  {
    int i = f.p;
    if (i == 0) {
      if ("MODE_COMPONENT_SINGLE".equals(paramString)) {
        return 0;
      }
    }
    if (i == 0) {
      if ("MODE_COMPONENT_CONNECTED".equals(paramString)) {
        return 1;
      }
    }
    if (i == 0) {
      if ("MODE_COMPONENT_CLUSTERING".equals(paramString)) {
        return 2;
      }
    }
    return 3;
  }
  
  private static byte f(String paramString)
  {
    int i = f.p;
    if (i == 0) {
      if ("ORIENTATION_MAIN_GRAPH_AUTO_DETECT".equals(paramString)) {
        return 5;
      }
    }
    if (i == 0) {
      if ("ORIENTATION_MAIN_GRAPH_TOP_TO_DOWN".equals(paramString)) {
        return 0;
      }
    }
    if (i == 0) {
      if ("ORIENTATION_MAIN_GRAPH_DOWN_TO_TOP".equals(paramString)) {
        return 2;
      }
    }
    if (i == 0) {
      if ("ORIENTATION_MAIN_GRAPH_LEFT_TO_RIGHT".equals(paramString)) {
        return 1;
      }
    }
    if (i == 0) {
      if ("ORIENTATION_MAIN_GRAPH_RIGHT_TO_LEFT".equals(paramString)) {
        return 3;
      }
    }
    if (i == 0) {
      if ("ORIENTATION_MAIN_GRAPH_NONE".equals(paramString)) {
        return -1;
      }
    }
    return 5;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.g.z

 * JD-Core Version:    0.7.0.1

 */